package com.pig4cloud.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.mall.product.dto.BrandParam;
import com.pig4cloud.mall.product.entity.Brand;
import com.pig4cloud.pig.common.core.util.PageResult;

import java.util.List;

/**
 * 品牌表
 *
 * @author fangyu
 * @date 2020-12-26 23:41:08
 */
public interface BrandService extends IService<Brand> {

	int create(BrandParam brandParam);

	List<Brand> listAllBrand();

	PageResult listBrand(String keyword, Integer page, Integer pageSize);

    int update(BrandParam brandParam, Long id);

	Brand getBrand(Long id);

	int delete(List<Long> ids);

	int delete(Long id);

	boolean updateShowStatus(List<Long> ids, Integer showStatus);

	boolean updateFactoryStatus(List<Long> ids, Integer factoryStatus);

}
